/**
 * 
 */
package com.anyuan.wx.pojo;

/**
 * @author liuyanbin
 * @date 2014-3-14
 */
public class BaiduPlace implements Comparable<BaiduPlace> {

	/* (non-Javadoc)
	 * @see java.lang.Comparable#compareTo(java.lang.Object)
	 */
	
	
	private String name;
	
	private String address;
	
	private String lng;
	
	private String lat;
	
	private String telephone;
	
	private int distance;
	
	private int value;
	
	
	
	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	public String getAddress() {
		return address;
	}



	public void setAddress(String address) {
		this.address = address;
	}



	public String getLng() {
		return lng;
	}



	public void setLng(String lng) {
		this.lng = lng;
	}



	public String getLat() {
		return lat;
	}



	public void setLat(String lat) {
		this.lat = lat;
	}



	public String getTelephone() {
		return telephone;
	}



	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}



	public int getDistance() {
		return distance;
	}



	public void setDistance(int distance) {
		this.distance = distance;
	}



	public int getValue() {
		return value;
	}



	public void setValue(int value) {
		this.value = value;
	}



	@Override
	public int compareTo(BaiduPlace baiduPlace) {
		// TODO Auto-generated method stub
		return this.distance - baiduPlace.getDistance();
	}

}
